package cn.caplike.demo.repository.math;

/**
 * Description:
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2022-08-10 11:53
 */
@SuppressWarnings("SameParameterValue")
public class LogDemo {

    public static void main(String[] args) {
        System.out.println(log(65536, 2)); // 16.0
    }

    static double log(double value, double base) {
        return Math.log(value) / Math.log(base);
    }
}
